package com.teamin.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 有关消息的类型
 */
public class MessageEntity implements Serializable {

    @ApiModelProperty(value = "消息的ID")
    private Long messageId;

    @ApiModelProperty(value = "消息的接收者")
    private Long userId;

    @ApiModelProperty(value = "圈子")
    private Long circleId;

    @ApiModelProperty(value = "消息的创建时间")
    private Date createTime;

    @ApiModelProperty(value = "消息的类型")
    private Short messageType;

    @ApiModelProperty(value = "消自的引用对像的ID")
    private Long messageReId;

    @ApiModelProperty(value = "消息实体")
    private Object messageObj ;

    @ApiModelProperty(value = "是否被查看过")
    private int isRead;

    @ApiModelProperty(value = "圈子名称")
    private String circleName;

    public Object getMessageObj() {
        return messageObj;
    }

    public void setMessageObj(Object messageObj) {
        this.messageObj = messageObj;
    }

    public Long getMessageId() {
        return messageId;
    }

    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Short getMessageType() {
        return messageType;
    }

    public void setMessageType(Short messageType) {
        this.messageType = messageType;
    }

    public Long getMessageReId() {
        return messageReId;
    }

    public void setCircleName(String circleName) {
        this.circleName = circleName;
    }

    public String getCircleName() {
        return circleName;
    }
    @Override
    public String toString() {
        return "MessageEntity{" +
                "messageId=" + messageId +
                ", userId=" + userId +
                ", createTime=" + createTime +
                ", messageType=" + messageType +
                ", messageReId=" + messageReId +
                '}';
    }

    public void setMessageReId(Long messageReId) {
        this.messageReId = messageReId;
    }

	public Long getCircleId() {
		return circleId;
	}

	public void setCircleId(Long circleId) {
		this.circleId = circleId;
	}

	public int getIsRead() {
		return isRead;
	}

	public void setIsRead(int isRead) {
		this.isRead = isRead;
	}
}
